<!--多选下拉框-->
<form action="" method="post">
    <select name="q[]" multiple="multiple" id="">
        <option value="">选择一个技师</option>
        <option value="fang">阿芳</option>
        <option value="hua">花花</option>
        <option value="qing">清清</option>
    </select>
    <br>
    <input type="submit" value="提交">
</form>
<?php
$q = isset($_POST['q'])?$_POST['q']:'';

//检测变量是否是数组
if(is_array($q)){
    $girl = array(
            'fang'=>'芳芳 ',
            'hua'=>'花花',
            'qing'=>'清清'
    );
  foreach ($q as $val){
      //换行
      echo $girl[$val].PHP_EOL;
  }
}
?>
